<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://shale.apache.org/validator">

<f:view>
<f:loadBundle var="text" basename="#{userTest.bundleName}"/>
<head>
    <title>#{text['take.test.complete.title']}</title>
    <meta name="heading" content="#{text['take.test.complete.title']}"/>
</head>

<body>

<h:form>
<p><h:outputText value="#{text['take.test.complete']}" /></p>
<p><h:outputText value="#{text['take.test.seeResults']}" rendered="#{userTest.displayResult}"/></p>
<h:commandButton value="#{text['testInstance.action.display.results']}" action="#{userTest.inlineReport}" styleClass="button_inline" rendered="#{userTest.testInstance.showResult}">
				<f:param name="testInstanceObjectId" value="#{userTest.testInstance.objectId}"/>
</h:commandButton>
<h:commandButton value="#{text['testInstance.action.print.results']}" action="#{userTest.PDFReport}" styleClass="button_inline" rendered="#{userTest.testInstance.showResult}">
				<f:param name="testInstanceObjectId" value="#{userTest.testInstance.objectId}"/>
</h:commandButton>
<p><h:outputText value="#{text['take.test.demographics.message']}" rendered="#{userTest.displayDemo}"/></p>
<h:commandButton value="#{text['take.test.demographics.button']}" action="#{demographics.displayQuestions}" styleClass="button_inline" rendered="#{userTest.displayDemo}"/>
<p><h:outputText value="#{text['take.test.done.message']}"/></p>
<p><h:commandButton value="Done" action="mainMenu.xhtml" styleClass="button_inline"/></p>
</h:form>




</body>
</f:view>

</html>



